<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Attach Profiler: Attach Settings Dialog Box</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>

<body>
<p><a id="AttachDialog.HelpCtx" name="AttachDialog.HelpCtx"></a></p>
<div id="NBCSH3071"><!-- infolevel="all" infotype="General" --><a id="sthref398" name="sthref398"></a>
<h1>Attach Profiler: Attach Settings Dialog Box</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>Use to configure and review the settings for attaching the profiling tool to an application. To attach the profiler to an application you need to specify the location of the target JVM and a connection method. The attach settings are specific for each project. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG707">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>

<table summary="Descriptions of Attach Settings dialog box fields." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="33%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t2">Element</th>
<th align="left" valign="bottom" id="r1c2-t2">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t2" headers="r1c1-t2">
<p>Local</p>
</td>
<td align="left" headers="r2c1-t2 r1c2-t2">Attaches the profiler to a local application. Select this option if the application is running on the local machine.
<p>If you select this option you need to select one of the following Connection options: <b>Dynamic</b> or <b>Direct</b>.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Dynamic</p>
</td>
<td align="left" headers="r3c1-t2 r1c2-t2">Connects to a process that is running.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Direct</p>
</td>
<td align="left" headers="r4c1-t2 r1c2-t2">Starts the application after the profiler attaches.
<p>If you select this option, you must modify the startup script of the application for standalone Java SE applications.</p>
<p>If you are attaching to a server, you must modify the startup script and configuration file of the server.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t2" headers="r1c1-t2">
<p>Remote</p>
</td>
<td align="left" headers="r5c1-t2 r1c2-t2">Attaches the profiler to an application running on a remote system. Select this option if the application is running on a remote machine.
<p>If you select this option, you need to specify the following connection details for the remote host: <b>Hostname</b> and <b>OS and JVM</b>.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Hostname</p>
</td>
<td align="left" headers="r6c1-t2 r1c2-t2">.Specifies the hostname of the target.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;OS &amp; JVM</p>
</td>
<td align="left" headers="r7c1-t2 r1c2-t2">Selects the operating system of the target.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<p>After you specify the connection details, you must perform the configuration steps in the dialog box. Start the remote application on a Remote Profiling Pack that the IDE generates based on the connection details that you specified.</p>
<a id="NBCSH3078" name="NBCSH3078"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG706">
<param name="text" value="<html><u>&quot;Attaching the Profiler to a Local Application&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG716">
<param name="text" value="<html><u>&quot;Attaching the Profiler to a Remote Application&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG719">
<param name="text" value="<html><u>&quot;Attaching to a Remote Server&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>

<!-- -->
<!-- Start Footer -->


<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>
